//
//  Config.m
//  BaseFrame
//
//  Created by 孟学浩 on 16/9/28.
//  Copyright © 2016年 com.mxh. All rights reserved.
//

#import "Config.h"

/**
 *  文字 黑色
 */
NSString *mainColor = @"209bf1";

NSString *redColor = @"d11f16";

NSString *textColor = @"666666";

/**
 * 一般分割线颜色
 */
NSString *dividerColor = @"c8c7cc";

@implementation Config

UIColor* getColor(NSString * hexColor){
    
    unsigned int red, green, blue;
    NSRange range;
    range.length = 2;
    
    range.location = 0;
    [[NSScanner scannerWithString:[hexColor substringWithRange:range]] scanHexInt:&red];
    range.location = 2;
    [[NSScanner scannerWithString:[hexColor substringWithRange:range]] scanHexInt:&green];
    range.location = 4;
    [[NSScanner scannerWithString:[hexColor substringWithRange:range]] scanHexInt:&blue];
    
    return [UIColor colorWithRed:(float)(red/255.0f) green:(float)(green/255.0f) blue:(float)(blue/255.0f) alpha:1.0f];
}

@end
